package com.dogsong.liteflow.editor.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 组件属性VO
 *
 * @author <a href="mailto:dogsong99@163.com">dosong</a>
 * @since 2024/4/18
 */
@ApiModel(description ="elJson结构对象")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CmpProperty {

    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "类型")
    private String type;

    @ApiModelProperty(value = "属性")
    private Properties properties;

    @ApiModelProperty(value = "条件")
    private CmpProperty condition;

    @ApiModelProperty(value = "子集")
    private List<CmpProperty> children;

}
